package com.daJiao.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.daJiao.entity.SysAgreement;
import com.daJiao.mapper.SysAgreementMapper;
import com.daJiao.properties.OssProperties;
import com.daJiao.service.SysAgreementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * <p>Title:      SysAgreementServiceImpl. </p>
 * <p>Description 协议签署表 </p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company:    医百科技有限公司 </p>
 *
 * @author         yangwensheng@100doc.com.cn
 * @since      2021-03-25 10:08:31
 */
@Service
public class SysAgreementServiceImpl extends ServiceImpl<SysAgreementMapper,SysAgreement> implements SysAgreementService {

    @Resource
    private SysAgreementMapper sysAgreementMapper;

    @Resource
    private OssProperties ossProperties;


    @Override
    public int updateByUserId(SysAgreement deleteAgreement) {
        return sysAgreementMapper.updateByUserId(deleteAgreement);
    }


    @Override
    public List<SysAgreement> batchQueryByPatientIds(List<String> patientIds, Integer userType) {
        return sysAgreementMapper.batchQueryByPatientIds(patientIds,userType);
    }


}
